package com.victor.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import com.victor.entity.AdminToMenuTwo;

@Mapper
public interface AdminToMenuTwoDao {
	/**
	 * 添加管理员二级菜单
	 * @param adminToMenuTwo
	 * @return
	 */
	boolean insert(AdminToMenuTwo adminToMenuTwo);
	/**
	 * 根据一级菜单id查询
	 * @param menuoneid
	 * @return
	 */
	List<AdminToMenuTwo> selAdminMenuTwoByAdminid(String menuone_id);
	/**
	 * 删除管理员二级菜单
	 * @param admin_id
	 * @param menuoneid
	 * @return
	 */
	boolean delMenutotwo(@Param(value = "admin_id") String admin_id,@Param(value = "menuoneid") String menuoneid);
	/**
	 * 根据adminid查询
	 * @param adminid
	 * @return
	 */
	@Select({"select * from admintomenutwo where admin_id=#{adminid}"})
	List<AdminToMenuTwo> selByAdminId(String adminid);

}
